Java Testing with Spock

Java Testing with Spock

作者: Konstantinos Kapelonis
出版社: Manning
出版在: 2016-04-05
ISBN-13: 9781617292538
ISBN-10: 1617292532
裝訂格式: Paperback
總頁數: 304 頁





內容描述


Summary Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. Readers new to Groovy will appreciate the succinct language tutorial that'll give you just enough Groovy to use Spock effectively. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Spock combines the features of tools like JUnit, Mockito, and JBehave into a single powerful Java testing library. With Spock, you use Groovy to write more readable and concise tests. Spock enables seamless integration testing, and with the intuitive Geb library, you can even handle functional testing of web applications. About the Book Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. You'll start with a quick overview of Spock and work through writing unit tests using the Groovy language. You'll discover best practices for test design as you learn to write mocks, implement integration tests, use Spock's built-in BDD testing tools, and do functional web testing using Geb. Readers new to Groovy will appreciate the succinct language tutorial in chapter 2 that gives you just enough Groovy to use Spock effectively. What's InsideTesting with Spock from the ground upWrite mocks without an external libraryBDD tests your business analyst can readJust enough Groovy to use SpockAbout the ReaderWritten for Java developers. Knowledge of Groovy and JUnit is helpful but not required.About the AuthorKonstantinos Kapelonis is a software engineer who works with Java daily.Table of ContentsPART 1 FOUNDATIONS AND BRIEF TOUR OF SPOCKIntroducing the Spock testing frameworkGroovy knowledge for Spock testingA tour of Spock functionalityPART 2 STRUCTURING SPOCK TESTSWriting unit tests with SpockParameterized testsMocking and stubbingPART 3 SPOCK IN THE ENTERPRISEIntegration and functional testing with SpockSpock features for enterprise testing




相關書籍

單元測試的藝術 - 以 C# 為範例『第二版』

作者 奧西洛夫 (Roy Osherove)

2016-04-05

全棧自動化測試實戰——基於TestNG、HttpClient、Selenium和Appium

作者 盧家濤

2016-04-05

軟件測試流程設計 從傳統到敏捷

作者 51Testing軟件測試網

2016-04-05